package br.com.felix.dbm.ui;

import java.awt.Color;

/**
 * User interface of a foreign key column.
 * */
public class ForeignKeyUi extends ColumnUi {

	private static final long serialVersionUID = -5834031109180136362L;



	@Override
	protected void configureDefaults() {
		super.configureDefaults();
		tglPrimaryKey.setText("FK");
		this.tglPrimaryKey.setEnabled(false);
		this.txtColumnName.setEditable(false);
		this.cboDatatype.setEnabled(false);
		this.dsTextField.setEditable(false);
		this.txtColumnName.setForeground(Color.BLUE);
	}
	
	
	public String toString(){
		return "FK " + super.toString();
	}

}
